<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script src="/lib/vue.js"></script>

  <div id="box">
    <h1>{{na}}</h1>
    <span v-text="na"></span>
    <span v-text=age></span>
    <span v-text=na>aasass</span>
    <span v-html=na></span>
    <h1 v-html="age"></h1>
    <h1 v-html=na></h1>
    <h1 v-html="age+1"></h1>
    <!-- 会把原有数据覆盖 -->
    <!-- v-html可以解析html语言 -->
    <h1 v-html="ys">hhsdh</h1>
  </div>
  <script>
    var vue = new Vue({
      el: '#box',
      data: {
        na: '大美女',
        age: 18,
        ys: '<h2 style="color: brown;background-color: antiquewhite;">我的样式是在vue中实现的</h2>'
      }
    })
  </script>

</body>

</html>